home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Anonimowosc i bezpieczenstwo / TOR 0.1.1.24 / vidalia-bundle-0.1.1.24-0.0.7.exe / Privoxy / templates / edit-actions-list < prev    next >
Text File  |  2004-03-05  |  13KB  |  391 lines

  1. ##############################################################################
  2. #
  3. # File        :  $Source: /cvsroot/ijbswa/current/templates/edit-actions-list,v $
  4. #
  5. # Purpose     :  Template used to edit the actions file.
  6. #
  7. # Copyright   :  Written by and Copyright (C) 2001 the SourceForge
  8. #                Privoxy team. http://www.privoxy.org/
  9. #
  10. #                Original Author: Copyright (C) 2001 Jonathan Foster
  11. #                http://www.jon-foster.co.uk/
  12. #
  13. #                This program is free software; you can redistribute it 
  14. #                and/or modify it under the terms of the GNU General
  15. #                Public License as published by the Free Software
  16. #                Foundation; either version 2 of the License, or (at
  17. #                your option) any later version.
  18. #
  19. #                This program is distributed in the hope that it will
  20. #                be useful, but WITHOUT ANY WARRANTY; without even the
  21. #                implied warranty of MERCHANTABILITY or FITNESS FOR A
  22. #                PARTICULAR PURPOSE.  See the GNU General Public
  23. #                License for more details.
  24. #
  25. #                The GNU General Public License should be included with
  26. #                this file.  If not, you can view it at
  27. #                http://www.gnu.org/copyleft/gpl.html
  28. #                or write to the Free Software Foundation, Inc., 59
  29. #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  30. #
  31. # Revisions   :
  32. #    $Log: edit-actions-list,v $
  33. #    Revision 1.26.2.4  2003/12/17 16:35:17  oes
  34. #    Work around new & silly MSIE behaviour where the request resulting from
  35. #    changing window.location.href doesn't reveal the referrer anymore
  36. #
  37. #    Revision 1.26.2.3  2002/09/25 15:34:09  oes
  38. #    - Work around JS problem in NS 2.0 (no joke)
  39. #    - Make JS string edit popup remove the pattern
  40. #      if edited to empty; make JS add popup do nothing
  41. #      if pattern empty.
  42. #
  43. #    Revision 1.26.2.2  2002/08/23 02:22:53  hal9
  44. #    Fix a perl brain fart with <li> in comments.
  45. #
  46. #    Revision 1.26  2002/05/23 23:37:25  oes
  47. #    Nit
  48. #
  49. #    Revision 1.25  2002/05/21 21:02:52  oes
  50. #    Added more help links
  51. #
  52. #    Revision 1.24  2002/05/21 19:11:40  oes
  53. #     - Added client-side JavaScript versions of edit and add URL forms
  54. #     - Moved jump targets to before container table cell
  55. #     - Let earu determine the jump target when removing URLs via JS
  56. #     - Fixed broken help link
  57. #
  58. #    Revision 1.23  2002/05/12 15:53:10  jongfoster
  59. #    Restoring CVS log information accidentally removed in
  60. #    my previous commit.
  61. #
  62. #    Revision 1.22  2002/05/12 15:45:33  jongfoster
  63. #    Applying [Patch 552094] New templates for edit-actions-list
  64. #    This cleans up the templates by:
  65. #    - Removing the (confusing) alternating color scheme.
  66. #    - Making everything left-justified.
  67. #
  68. #    Revision 1.21  2002/05/03 22:58:15  jongfoster
  69. #    Fixing link target in all URLs section
  70. #
  71. #    Revision 1.20  2002/04/26 12:57:18  oes
  72. #     - Central "button" link style in cgi-style.css
  73. #     - Help links now dynamic
  74. #
  75. #    Revision 1.19  2002/04/24 02:19:16  oes
  76. #     - Show name of actions file being edited
  77. #     - Show context sensitive help
  78. #     - Add buttons for easy changing of defaults
  79. #     - Cosmetics and clarifications
  80. #
  81. #    Revision 1.18  2002/04/18 19:21:09  jongfoster
  82. #    Added code to detect "conventional" action files, that start
  83. #    with a set of actions for all URLs (the pattern "/").
  84. #    These are special-cased in the "edit-actions-list" CGI, so
  85. #    that a special UI can be written for them.
  86. #
  87. #    Revision 1.17  2002/04/10 13:32:53  oes
  88. #    Made templates modular
  89. #
  90. #    Revision 1.16  2002/04/08 17:08:14  oes
  91. #    Cosmetic: make status in title lowercase
  92. #
  93. #    Revision 1.15  2002/04/05 16:01:32  oes
  94. #    Correct HTML, external Stylesheets, eye candy, some fixes
  95. #
  96. #    Revision 1.14  2002/03/26 22:29:56  swa
  97. #    we have a new homepage!
  98. #
  99. #    Revision 1.13  2002/03/24 15:23:33  jongfoster
  100. #    Name changes
  101. #
  102. #    Revision 1.12  2002/03/24 11:01:06  swa
  103. #    name change
  104. #
  105. #    Revision 1.11  2002/03/23 16:18:15  swa
  106. #    renamed every reference to the old name with foobar.
  107. #    fixed "application foobar application" tag, fixed
  108. #    "the foobar" with "foobar". left junkbuster in cvs
  109. #    comments and remarks to history untouched. should
  110. #    make final rename easier.
  111. #
  112. #    Revision 1.10  2002/03/16 15:22:19  jongfoster
  113. #    Moving 'alpha' warning to the end of the page
  114. #
  115. #    Revision 1.9  2002/03/05 00:24:51  jongfoster
  116. #    Patch to always edit the current actions file.
  117. #
  118. #    Revision 1.8  2002/03/03 10:29:12  swa
  119. #    point users to the right feedback forms,
  120. #    not necessarily the developer list.
  121. #
  122. #    Revision 1.7  2002/01/23 00:26:45  jongfoster
  123. #    Reducing length of URLs
  124. #    Where encoded and unencoded versions of a string existed, removing
  125. #    the unencoded one.
  126. #
  127. #    Revision 1.6  2002/01/17 21:33:00  jongfoster
  128. #    Replacing all references to the URL of the config interface
  129. #    with @default-cgi@
  130. #
  131. #    Revision 1.5  2002/01/17 21:21:05  jongfoster
  132. #    DOS->Unix line endings
  133. #
  134. #    Revision 1.4  2001/11/13 00:58:18  jongfoster
  135. #    New version of actions file editor templates
  136. #
  137. #
  138. ##############################################################################
  139. #
  140. # Browser support for the CSS on this page:
  141. #   MS Internet Explorer 5.5 - Yes - everything works.
  142. #   Netscape 6.2             - Yes - everything works.
  143. #   Netscape 4.75            - No  - CSS buttons look really bad, but they are
  144. #                                    usable.  Everything else works.
  145. #   Opera 5.12               - Yes - everything works.
  146. #   MS Internet Explorer 4+  - Untested
  147. #   MS IE 3.x, NS3.x         - Untested (Don't support CSS, so everything
  148. #                              should work, but will look ugly).
  149. #   Mozilla >=0.6            - Yes - everything works.
  150. #
  151. # All browsers should work, you just might not get the pretty CSS buttons.
  152. #
  153. # If your favorite browser isn't listed/tested, please test and add it.
  154. #
  155. #
  156. #############################################################################
  157. #
  158. # Standard support:
  159. #
  160. # This file currently produces valid HTML 4.01 Strict.
  161. #
  162. # If you change it, please save the generated page from your web browser
  163. # and then upload it to http://validator.w3.org/ for checking.
  164. #
  165. #############################################################################
  166. #
  167. # Available variables include:
  168. #
  169. # filename
  170. # ver
  171. #
  172. #
  173. #############################################################################
  174. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  175. <html>
  176.  
  177. <head>
  178.   <meta http-equiv="Content-Style-Type" content="text/css">
  179.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  180.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  181.   <meta name="robots" content="noindex,nofollow">
  182.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  183.  
  184.   <title>Privoxy: Edit actions file @f@.action</title>
  185.  
  186.   <style type="text/css">
  187.  
  188. table.framed {
  189.   border: solid black 1px;
  190.   margin: 10px 0px;
  191. }
  192. tr.actions {
  193.   background-color: #eeffee;
  194. }
  195. tr.url {
  196.   background-color: #ddddff;
  197. }
  198. tr.adv {
  199.   background-color: #FFFFD0;
  200. }
  201. td.header {
  202.   font-weight: bold;
  203.   font-size: 110%;
  204.   padding: 10px 15px 2px 15px;
  205. }
  206. td.url {
  207.   font-weight: bold;
  208. }
  209. td.action {
  210.   font-weight: bold;
  211.   font-style: italic;
  212.   padding: 2px 30px;
  213. }
  214. td.nbr, td.buttons {
  215.   white-space: nowrap;
  216. }
  217. td.indentbuttons {
  218.   padding: 2px 30px;
  219. }
  220. </style>
  221.  
  222. <script type="text/javascript">
  223. <!--
  224.  
  225. // Non-JS capable browsers will follow the link to a HTML "are you sure?" page
  226. // JavaScript-capable browsers will call this function, which does a
  227. // client-side prompt for speed.  It may kick off the delete directly.
  228. // It always returns false to cancel following the link.
  229. function rm_p(link,pattern,curtext)
  230. {
  231.    if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
  232.    {
  233.       link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern;
  234.       return true;
  235.    }
  236.    return false;
  237. }
  238.  
  239. function e_p(link,pattern,curtext)
  240. {
  241.    if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null)
  242.    {
  243.       if (newtext != "")
  244.       { link.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+escape(newtext); }
  245.       else
  246.       { link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
  247.       return true;
  248.    }
  249.    return false;
  250. }
  251.  
  252. function a_p(link,section)
  253. {
  254.    if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != ""))
  255.    {
  256.       link.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+escape(newtext);
  257.       return true;
  258.    }
  259.    return false;
  260. }
  261. //-->
  262. </script>
  263. </head>
  264.  
  265. <body>
  266.  
  267.   <table cellpadding="20" cellspacing="10" border="0" width="100%">
  268.     <tr>
  269.       <td class="title">
  270.  
  271. #include mod-title
  272.  
  273.       </td>
  274.     </tr>
  275.  
  276. <!-- @if-unstable-start -->
  277. # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
  278.     <tr>
  279.       <td class="warning">
  280.  
  281. #include mod-unstable-warning
  282.  
  283.       </td>
  284.     </tr>
  285. <!-- if-unstable-end@ -->
  286.  
  287.     <tr>
  288.       <td class="info">
  289.     <h2>What is all this?</h2>
  290.         <p>
  291.          If you haven't already done so, it is <b>strongly recommended</b> that you at 
  292.          least skim <a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">the
  293.          chapter on actions files</a> in the <a href="@user-manual@">user manual</a>
  294.          before making any changes. You will also find a comprehensive list of all available actions
  295.          there.
  296.         </p>
  297.          <!-- @if-all-urls-present-then@ -->
  298.         <p>
  299.          Please note that <b>the first section has special importance</b>. It sets the default actions for
  300.          all URLs. The resulting actions for a particular URL may differ from these defaults if that
  301.          URL matches again further down, but this section is largely responsible for your browsing
  302.          experience. Edit manually with great care, or choose from the predefined sets of actions.
  303.         </p>
  304.         <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
  305.         <!-- @if-default-action-then@ -->
  306.         <p>
  307.          This is the default action file. Updates for it are available from
  308.          <a href="http://www.privoxy.org/">Privoxy.org</a> on a regular basis. 
  309.          It is therefore <b>not recommended</b> that you add your private
  310.          rules here, since they will be lost if you install an update in the future.
  311.          Put your rules in a separate actions file, like <tt>user.action</tt> instead.
  312.         </p>
  313.         <!-- @else-not-default-action@@endif-default-action@ -->
  314.       </td>
  315.     </tr>
  316.  
  317.     <tr>
  318.       <td class="box">
  319.         <div class="buttons">
  320.           <h2>Editing Actions File @f@.action</h2>
  321.           <!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
  322.           <p><a class="cmd" href="edit-actions-section-add?f=@f@&v=@v@&s=0">Insert new section at top</a></p>
  323.           <!-- @endif-all-urls-present@ -->
  324.         </div>
  325.       </td>
  326.     </tr>
  327.  
  328.     <!-- @if-all-urls-present-then@ -->
  329.     <tr>
  330.       <td class="container"><a name="l@all-urls-s@"></a>
  331.         <table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
  332.           <tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
  333.           <tr class="actions">
  334.             <td class="indentbuttons">
  335.               <a href="eafu?f=@f@&v=@v@&s=@all-urls-s@">Edit</a>
  336.               @all-urls-buttons@
  337.             </td>
  338.           </tr>
  339.           <tr class="actions"><td class="action">@all-urls-actions@</td></tr>
  340.           <tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
  341.           <tr class="url"><td class="indentbuttons">/   <i>(Matches all requests)</a></td></tr>
  342.           <tr class="adv"><td class="header">Advanced:</td></tr>
  343.           <tr class="adv">
  344.             <td class="indentbuttons">
  345.               <a href="easa?f=@f@&v=@v@&s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a>
  346.             </td>
  347.           </tr>
  348.         </table>
  349.       </td>
  350.     </tr>
  351.     <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
  352.  
  353. @sections@
  354.  
  355.     <tr>
  356.       <td class="box">
  357.         <h2>More Privoxy:</h2>
  358.         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
  359.       </td>
  360.     </tr>
  361.  
  362.     <tr>
  363.       <td class="info">
  364.  
  365. #include mod-support-and-service
  366.  
  367.       </td>
  368.     </tr>
  369.  
  370. <!-- @if-have-help-info-start -->
  371.     <tr>
  372.       <td class="info">
  373.  
  374. #include mod-local-help
  375.  
  376.       </td>
  377.     </tr>
  378. <!-- if-have-help-info-end@ -->
  379.  
  380.     <tr>
  381.       <td>
  382.         <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
  383.       </td>
  384.     </tr>
  385.  
  386.   </table>
  387. </body>
  388.  
  389. </html>
  390.